//设置 类名

class avanda {
  constructor() {}
  //设置 类名
  get [Symbol.toStringTag]() {
    return 'avanda';
  }
  avanda() {
    console.log('this is avanda first Test you can do nothing');
  }
}

class corona extends avanda {
  acv = 'link';
  get [Symbol.toStringTag]() {
    return 'corona';
  }
  corona() {
    console.log('this is corona entends avanda', Symbol.toStringTag, this.acv);
  }
  get [this.acv]() {
    console.log('this is test for get [expression] to settle a function');
  }
}

let avandaEx = new avanda();
let coronaEx = new corona();
console.log(avandaEx.toString(), coronaEx.toString());
